const api = "/system";
const loginApi = '/security';
const toolkit = '/toolkit';
let urlApi = {
  platform: {//平台
    submit: `${api}/platform/submit`, //提交数据
    pagelist:`${api}/platform/listPage`, //获取列表数据
    enable:`${api}/platform/enable`, //修改状态
    delete:`${api}/platform/delete`, //删除数据
    list:`${api}/platform/list`, //集合
  },
  menu:{
    listTree:`${api}/menu/listTree`, //查询集合
    submit:`${api}/menu/submit`, //提交菜单
    select:`${api}/menu/select`, //查询菜单
    delete:`${api}/menu/delete`, //删除菜单
  },
  auth:{//菜单权限
    select:`${api}/auth/select`, //查询数据
    submit:`${api}/auth/submit`, //提交数据
    delete:`${api}/auth/delete`, //删除数据
    list:`${api}/auth/list`, //列表数据
  },
  role:{//角色
    select:`${api}/role/select`, //查询数据
    submit:`${api}/role/submit`, //提交数据
    delete:`${api}/role/delete`, //删除数据
    list:`${api}/role/list`, //列表数据
  },
  roleAuth:{
    setting:`${api}/role-auth/setting`, //提交角色权限
    getIds:`${api}/role-auth/getIds`, //获取菜单权限
  },
  user:{//用户
    listPage:`${api}/user/listPage`, //分页查询 
    enable:`${api}/user/enable`, //启用状态
    delete:`${api}/user/delete`, //删除 
    audit:`${api}/user/audit`, //审核 
    resetPwd:`${api}/user/resetPwd`, //修改密码 
    submit:`${api}/user/submit`, //提交 
    userinfo:`${api}/user/userinfo`, //用户信息 
    select:`${api}/user/select`, //查看用户信息
  },
  login:{
    userinfo:`${loginApi}/authorization/userinfo`, //登录
    token:`${loginApi}/authorization/token`,//token
    resetPwd:`${api}/user/resetPwd`,//修改密码
    code:`${toolkit}/sms/code`,//修改密码
    logout:`${loginApi}/authorization/logout`,//注销登录
  },
  toolkit:{
    get:`${toolkit}/config/get`, //获取配置
    upload:`${toolkit}/file/uploadFile`, //上传图片
  }
};

export default urlApi;
